The following table shows the options on the States tab of the Momentary Push Button Properties dialog box.
Options |
Descriptions |
---|---|
Select state |
Click the state for which to set up properties. The released state is State 0. The pressed state is State 1. There is also an error state, which is labeled Error. |
General |
|
Value |
Type the integer value to use for each state. You cannot assign a value to the error state. If you selected Momentary Open in the Button action box, State 0 has a value of 0, and State 1 has a value of 1. You cannot change these values. If you selected Momentary Closed in the Button action box, State 0 has a value of 1, and State 1 has a value of 0. You cannot change these values. |
Back color |
This box shows the current background color for the state. Click it to select another color. If the background style is transparent, the application does not use this background color. |
Border color |
This box shows the border color for the state. Click it to select another color. If Border uses back color is not selected on the General tab, this color appears at run time. |
Blink |
Select this check box if you want the object’s background to blink when the object is in this state at run time. The blink rate is twice per second. |
Pattern style |
Select a pattern for the state. The pattern appears on the face of the object. The pattern does not cover the object’s border, caption, or image (if any are defined for the object). If the indicator’s back style is transparent or gradient (as specified in the General tab), the pattern is not visible. |
Pattern color |
This box displays the current pattern color for the state. Click it to select another color. |
Caption |
Enter the text for the state. The text appears on the face of the object, to give the operator information about the current state. The default caption for the error state is Error. You can change it if required. |
Insert Variable |
Click this button to select the type of variable to be inserted. |
Font |
Select the font to use for the caption. |
Size |
Select the font size to use for the caption. |
Bold, Italic, Underline |
Select a font style for the caption, if required. |
Caption color |
This box shows the current text color for the caption. Click it to select another color. |
Caption back color |
This box shows the current background color for the caption. Click it to select another color. If the caption background style is transparent, the application does not use this caption background color. |
Caption blink |
Select this check box if you want the caption to blink at run time. The caption blinks twice per second. |
Word wrap |
Select this check box if you want the text to continue on the next line at the beginning of a new word. If this check box is cleared, the text continues on the next line whenever the maximum text length is reached, even if this occurs in the middle of a word or number. The maximum text length depends on the width of the object and the font size. |
Caption back style |
Select whether the caption’s background is Solid or Transparent. If you select Transparent, the object’s background is not filled in and any objects behind it show through. |
Alignment |
Specifies how the caption is positioned on the object. If the object shape is circle or ellipse, the position is relative to the object's bounding box. |
Image settings |
|
Image |
Enter the file name of the graphic image for the state or click the Browse button to select the image in the Image Browser. The image appears on the face of the object to show the information about the current state. Before you can place an image on the object, you must import the image into your project. |
Image color |
This property applies to monochrome images. It determines the color the image is drawn in; that is, the foreground color. Click the colored box to select another color. |
Image back color |
This property applies to monochrome images. It determines the color of the background the image is drawn on. Click the colored box to select another color. If the Image back style is Transparent, the background of the image will be transparent. |
Image blink |
Select this check box to let the monochrome image blink at run time. The image blinks twice per second. |
Image scaled |
Select this check box to let the application resize the image to fit the object. If the object shape is circle or ellipse, the image is resized to fit in the object’s bounding box and clipped to fit the object’s shape. If this is not selected, the image is first aligned using the Alignment setting, and then, if larger than the object, the image is clipped to fit the object. |
Image back style |
This property applies to monochrome and color images. Use it to set the background style to Solid or Transparent. If Image back style is Transparent:
|
Alignment |
Specifies how the image is positioned on the object. If the object shape is circle or ellipse, the position is relative to the object's bounding box. |
About the Momentary push button’s error state
Set up general properties for a Momentary push button